package com.yaodian100.ec.member.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_MEMBER_WISH_LIST")
public class WishList extends BaseEntity {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1664170069017247845L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_member_wish_list")
	@SequenceGenerator(name = "seq_ec_member_wish_list", sequenceName = "SEQ_EC_MEMBER_WISH_LIST")
	@Column(name = "ID")
	private int id;

	@Column(name = "MEMBER_ID", length = 10, nullable = false)
	private String memberId;

	// @ManyToOne(fetch = FetchType.EAGER)
	// @JoinColumn(name = "PRODUCT_ID", nullable = false, insertable = false, updatable = false)
	// private Product productObj;

	@Column(name = "PRODUCT_ID")
	private String productId;

	@Column(name = "CATEGORY_ID")
	private Long categoryId;

	@Column(name = "PUT_PRODUCT_PRICE", columnDefinition = "NUMERIC(10, 2)")
	private BigDecimal putProductPrice;

	@Column(name = "FULL_URL")
	private String fullUrl;

	@Column(name = "ADD_RESON_TYPE")
	private String addResonType;

	@Column(name = "IS_PRICE_NOTIFY", nullable = false)
	private String isPriceNotify;

	@Column(name = "IS_RESTOCK_NOTIFY", nullable = false)
	private String isRestockNotify;

	@Column(name = "LOWER_PRICE_NOTIFY", columnDefinition = "NUMERIC(10, 2)")
	private BigDecimal lowerPriceNotify;

	@Column(name = "MEMO")
	private String memo;

	@Column(name = "CATEGORY_PATH", length = 2000)
	private String categoryPath;

	public String getAddResonType() {
		return addResonType;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public String getCategoryPath() {
		return categoryPath;
	}

	public String getFullUrl() {
		return fullUrl;
	}

	public int getId() {
		return id;
	}

	public String getIsPriceNotify() {
		return isPriceNotify;
	}

	public String getIsRestockNotify() {
		return isRestockNotify;
	}

	public BigDecimal getLowerPriceNotify() {
		return lowerPriceNotify;
	}

	public String getMemberId() {
		return memberId;
	}

	public String getMemo() {
		return memo;
	}

	public String getProductId() {
		return productId;
	}

	public BigDecimal getPutProductPrice() {
		return putProductPrice;
	}

	public void setAddResonType(String addResonType) {
		this.addResonType = addResonType;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public void setCategoryPath(String categoryPath) {
		this.categoryPath = categoryPath;
	}

	public void setFullUrl(String fullUrl) {
		this.fullUrl = fullUrl;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setIsPriceNotify(String isPriceNotify) {
		this.isPriceNotify = isPriceNotify;
	}

	public void setIsRestockNotify(String isRestockNotify) {
		this.isRestockNotify = isRestockNotify;
	}

	public void setLowerPriceNotify(BigDecimal lowerPriceNotify) {
		this.lowerPriceNotify = lowerPriceNotify;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public void setPutProductPrice(BigDecimal putProductPrice) {
		this.putProductPrice = putProductPrice;
	}

	// public Product getProductObj() {
	// return productObj;
	// }
	//
	// public void setProductObj(Product productObj) {
	// this.productObj = productObj;
	// }
}